home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilreen / ezset / manual.doc < prev    next >
Text File  |  1992-04-24  |  27KB  |  587 lines

  1.  
  2.                                   EZSET Version 2.0
  3.           
  4.                                        +++++++
  5.           
  6.                                 By McAdams Associates
  7.           
  8.           
  9.           
  10.           
  11.           *****************************************************************
  12.           
  13.           
  14.           
  15.           
  16.                                     **IMPORTANT**
  17.           
  18.               To register EZSET, see "Registering EZSET" on page 9 of 
  19.                                     this manual.
  20.           
  21.           
  22.           
  23.           
  24.           Contents                                 Page
  25.           --------                                 ----
  26.           
  27.           Description.............................. 2
  28.           Hardware Requirements.................... 2
  29.           EZSET's Limitations...................... 2
  30.           How EZSET Works.......................... 2
  31.           Using EZSET in Command Line Mode......... 3
  32.           Editing Strings.......................... 4
  33.           Entering a New String.................... 5
  34.           The Byte Input/Editing Screen............ 5
  35.           Troubleshooting.......................... 7
  36.           Disclaimer - Agreement................... 8
  37.           Registering EZSET........................ 9
  38.           Index.................................... 10 
  39.           
  40.           
  41.           
  42.           
  43.           
  44.           
  45.           
  46.           
  47.           
  48.           
  49.           
  50.           
  51.           
  52.           
  53.           
  54.           
  55.           
  56.               (C)Copyright 1992 by T.C. McAdams.  All Rights Reserved.
  57.           EZSET DESCRIPTION
  58.           -----------------
  59.           
  60.           EZSET is a utility program designed to make it easy to access ALL 
  61.           of your parallel printer's features, whether directly available 
  62.           from the printer's control panel or not.  Unlike other methods, 
  63.           which either involve programs that come with a predefined library 
  64.           of printer codes (none of which usually match your printer), or 
  65.           which involve writing BASIC programs or batch files, all you need 
  66.           to use EZSET effectively is your printer's manual.  EZSET is 
  67.           designed to make it EASY to send your printer's control codes 
  68.           from the command line or from inside batch files.  In addition, 
  69.           EZSET printer strings can be customized to go automatically to 
  70.           any printer port, using any printer online return value.  
  71.           
  72.           HARDWARE REQUIREMENTS
  73.           ---------------------
  74.           
  75.           EZSET should work on any IBM-compatible computer, running DOS 2.1 
  76.           or better.
  77.           
  78.           EZSET'S LIMITATIONS
  79.           -------------------
  80.           
  81.           EZSET will manage a printer string library containing an 
  82.           arbitrary maximum of 255 printer strings, with each printer 
  83.           string a maximum of 255 characters in length.  EZSET will output 
  84.           strings only through parallel ports 1 through 3.  EZSET will not 
  85.           output through serial ports.
  86.           
  87.           HOW EZSET WORKS
  88.           ---------------
  89.           
  90.           EZSET has two modes, an editor mode and a command line mode.  The 
  91.           editor mode is used to input and edit printer strings.  The 
  92.           command line mode is used to send strings to a printer.  Typing
  93.           
  94.                EZSET [ENTER]
  95.           
  96.           calls EZSET up in editor mode.  Here is what you'll see:
  97.           
  98.                                     Exit Program
  99.           
  100.                                 Edit A Printer String
  101.           
  102.                              Enter A New Printer String
  103.           
  104.           Above the menu choices there is a line telling you to use the 
  105.           arrow keys to move the light bar and to press [ENTER] when your 
  106.           choice is highlighted.  To leave EZSET you would simply highlight 
  107.           "Exit Program" and press the [ENTER] key.  This style of menu is 
  108.           EZSET's main method of getting input, making it difficult to go 
  109.           wrong.  Here is what the different main menu choices do:
  110.           
  111.           
  112.           
  113.           
  114.           
  115.                                           2
  116.           Exit Program
  117.           ------------
  118.           
  119.           Leaves EZSET.
  120.           
  121.           Edit A Printer String
  122.           ---------------------
  123.           
  124.           If there are already some strings defined (in a file called 
  125.           EZSET.LIB), choosing this option gives you a chance to modify 
  126.           them.
  127.           
  128.           Enter A New Printer String
  129.           --------------------------
  130.           
  131.           Choosing this option gives you an opportunity to enter a new 
  132.           string, including determining which printer port the string will 
  133.           go to, and defining what the online return code should be.
  134.           
  135.           Both editing and entering a new string will be covered in detail 
  136.           a little later on.
  137.           
  138.           USING EZSET IN COMMAND LINE MODE
  139.           --------------------------------
  140.           
  141.           After there has been at least one string entered, using EZSET's 
  142.           editing mode, you can send it to your printer by typing
  143.           
  144.                EZSET stringname [ENTER]
  145.           
  146.           If the printer is online (as determined by the return code saved 
  147.           with the string) the string is sent to it.  If the printer is 
  148.           off-line you are told so and EZSET exits with a return code of 
  149.           255.  EZSET's ability to return an exit code makes it possible to 
  150.           do conditional branching in a batch file.  An example batch file 
  151.           could be something like this:
  152.           
  153.           ECHO OFF
  154.           EZSET stringname
  155.           IF ERRORLEVEL 1 GOTO END
  156.           programname
  157.           :END
  158.           
  159.           Notice that EZSET uses the highest possible ERRORLEVEL return 
  160.           code.  This means that "IF ERRORLEVEL 255 GOTO END" would work 
  161.           equally well.  
  162.           
  163.           In addition to the return code, when a printer is offline a 
  164.           message to that effect is printed to the screen.  And, if you 
  165.           type a nonexistent string name (one that isn't in the library 
  166.           file), EZSET will say so, likewise with a return code.
  167.           
  168.           EZSET is supplied with a sample library of printer strings for an 
  169.           NEC Pinwriter printer.  If you don't have a Pinwriter, feel free 
  170.           to play with and experiment with them.  When you've gotten 
  171.           
  172.           
  173.           
  174.                                           3
  175.           familiar with EZSET they can be erased by deleting the file 
  176.           EZSET.LIB.  Then you'll have a "fresh slate" for inputting your 
  177.           own printer's strings.
  178.           
  179.           EDITING STRINGS
  180.           ---------------
  181.           
  182.           From the main menu press the [DOWN ARROW] key once, to highlight 
  183.           "Edit A Printer String", and press [ENTER].  In the center of the 
  184.           screen you'll see a sorted list of all available printer strings.  
  185.           Across the bottom of the screen are all of the pertinent control 
  186.           keys.  Notice that you can scroll the string list by using any of 
  187.           the "vertical" cursor-movement keys ([UP ARROW], [DOWN ARROW], 
  188.           [PgUp], [PgDn], [HOME] and [END]).
  189.           
  190.           To the left of the list box is a status indicator showing what 
  191.           the highlighted string's port setting is.  Pressing [F9] will 
  192.           take you to a light bar menu that lets you choose which printer 
  193.           port a particular string should always go to.  The port selected 
  194.           from the "Edit A Printer String" menu applies ONLY to that 
  195.           particular string.  The same menu, reached from the "Enter A New 
  196.           Printer String" main menu selection, will enable you to change 
  197.           the present session's default port setting.  All strings entered 
  198.           after changing the default port will have that as their setting.
  199.           
  200.           To the right of the list box is a status indicator showing what 
  201.           the highlighted string's online code is.  Before a string is sent 
  202.           to a printer from the command line, EZSET "interrogates" the 
  203.           printer to see if it's on and on line, to prevent your computer 
  204.           from going into the dreaded "timeout".  Truly, for most printers 
  205.           the default value for this will be all that is necessary, so you 
  206.           probably won't need to use this feature.  But if you ever 
  207.           encounter a "rogue printer" (as I have) that insists on 
  208.           responding differently than others, it can be handy.  Pressing 
  209.           [F10] will take you to yet another light bar menu enabling you to 
  210.           (1) interrogate the printer (with an informative bitwise readout 
  211.           of the return code), (2) to return WITHOUT changing the set 
  212.           value, (3) to return WITH a new value, and, finally, (4) to 
  213.           restore the default value if you find you've chosen unwisely.  An 
  214.           online code selected here (from the edit menu) applies ONLY to 
  215.           the highlighted string.  Changing the default is possible from 
  216.           the "Enter A New Printer String" menu.
  217.           
  218.           Pressing [DELETE] inside the edit menu will erase the highlighted 
  219.           string.  Use [DELETE] cautiously; if you erase something you wish 
  220.           hadn't you will have to exit to the main menu (by pressing [ESC]) 
  221.           and then leave the program (by pressing [ENTER]).  When asked if 
  222.           you want to save changes to disk, answer "no".  Everything done 
  223.           in the current session will then be gone.
  224.           
  225.           To try out what effect a particular string has on your printer, 
  226.           pressing [F5] will send it to the printer.  It's often useful to 
  227.           be able to enter a string, try it out, and then go back to the 
  228.           editing screen to modify it on the spot, if necessary.
  229.           
  230.           
  231.           
  232.           
  233.                                           4
  234.           Pressing [ENTER] takes you to the byte editing screen, with the 
  235.           currently highlighted string displayed for editing.  The byte 
  236.           editing screen will be described later, since it's where you go 
  237.           from the "Enter A New Printer String" menu, as well as from this 
  238.           one.
  239.           
  240.           ENTERING A NEW STRING
  241.           ---------------------
  242.           
  243.           From the main menu press down [DOWN ARROW] key twice (or [UP 
  244.           ARROW] once), to highlight "Enter A New Printer String", and 
  245.           press [ENTER].  In the middle of the screen you will see a box 
  246.           for entering a string name.  Unlike DOS path- and file-names, 
  247.           anything goes with a string name: letters, numbers and spaces are 
  248.           all okay.  Everything is automatically converted to uppercase as 
  249.           it is entered.
  250.           
  251.           To the left of the entry box, similar to the editing menu, is a 
  252.           status indicator for the output port.  Where the indicator said 
  253.           "String Port Value" in the editing menu, however, it now says 
  254.           "Current Port Value", indicating that the OVERALL, or DEFAULT 
  255.           value can be changed from this menu.  Pressing [F9] takes you to 
  256.           a scroll menu where you select which printer port all 
  257.           subsequently entered strings should go to.
  258.           
  259.           To the right of the entry box is a status indicator for the 
  260.           printer online value.  Where, in the edit menu, it said, "String 
  261.           Online Value", it now says "Current Online Value", indicating 
  262.           that a change (by pressing [F10]) will change the default value, 
  263.           affecting all subsequent (new) strings.
  264.           
  265.           Pressing [ENTER] after entering a string name will take you to 
  266.           the byte editing screen, where the individual bytes of a new 
  267.           setup string can be entered.
  268.           
  269.           THE BYTE INPUT/EDITING SCREEN
  270.           -----------------------------
  271.           
  272.           Pressing [ENTER] from both the "Edit A Printer String" menu or 
  273.           the "Enter A New Printer String" menu brings you here.  Across 
  274.           the middle of the screen is a display of string bytes, given in 
  275.           the first row as decimal numbers, and in the second as 
  276.           hexadecimal numbers.  This makes it easier to enter and edit a 
  277.           string, since a majority of printer manuals use both to 
  278.           illustrate escape codes.  Above the byte display are the byte 
  279.           numbers.  Below the display is an arrow, used as a cursor 
  280.           indicating which byte we're operating on.  On the bottom of the 
  281.           screen is a list of applicable keys:
  282.           
  283.           [ESC]       Returns you to the previous menu.
  284.           
  285.           [-><-]      The left and right arrow keys move the arrow cursor 
  286.                       left and right within the string.
  287.           
  288.           [PgUp]      "Jumps" the cursor 15 bytes to the left, towards the 
  289.           
  290.           
  291.           
  292.                                           5
  293.                       beginning of the string.  Scrolls backward through 
  294.                       the string.
  295.           
  296.           [PgDn]      "Jumps" the cursor 15 bytes to the right, towards the 
  297.                       end of the string.  Scrolls forward through the 
  298.                       string.
  299.           
  300.           [HOME]      Repositions the cursor to byte 0 of the string.
  301.           
  302.           [END]       Repositions the cursor to the first byte FOLLOWING
  303.                       the end of the string.  Used for appending new bytes 
  304.                       to the end of a string.
  305.           
  306.           [INS]       The insert key moves the bytes above and to the right 
  307.                       of the cursor one slot to the right, opening up a 
  308.                       space for inserting a new byte.
  309.           
  310.           [DEL]       Deletes the byte above the cursor.
  311.           
  312.           Above the byte display are directions:
  313.           
  314.           "Input the byte of the printer string indicated by the [UP ARROW] 
  315.           using <C>haracters, <D>ecimal numbers, or <H>ex numbers, then 
  316.           press [ENTER]. . ."
  317.           
  318.           followed by a prompt.  EZSET's ease of use comes partly through 
  319.           its ability to accept a byte value as a character, decimal number 
  320.           or hex number, all of which can be equivalent, depending on how 
  321.           they are interpreted.
  322.           
  323.           After entering a value and pressing [ENTER], EZSET says
  324.           
  325.           "Is this a <C>haracter, <D>ecimal number or <H>ex number?"
  326.           
  327.           at which point you must press "C", "D" or "H", to indicate how 
  328.           what you've typed should be interpreted.  A few examples:
  329.           
  330.           To enter an escape code (ASCII character 27), DON'T press [ESC], 
  331.           which will only return you to the previous menu.  Instead, type
  332.           
  333.                27 [ENTER]
  334.                D
  335.           
  336.           You could equally well have typed
  337.           
  338.                1b [ENTER]
  339.                H
  340.           
  341.           since 27 decimal is THE SAME AS 1b hex, and EZSET has no trouble 
  342.           keeping them straight if you tell it what the number base is ("D" 
  343.           for decimal, in the first instance, "H" for hex in the second).
  344.           
  345.           Entering literal string characters (as in the letter "A") is just 
  346.           as easy.  Just press "C" to indicate that this is a <C>haracter.  
  347.           If you type a string more than 1 character long and tell EZSET 
  348.           
  349.           
  350.           
  351.                                           6
  352.           it's a character, only the FIRST BYTE of the input will be 
  353.           interpreted as a character.
  354.           
  355.           As each new byte is entered the decimal and hex values of that 
  356.           byte will be displayed over the arrow cursor, which will then 
  357.           move to the right, awaiting the next byte.  As the number of 
  358.           characters entered grows, the byte display will scroll to keep 
  359.           up.  You can move back and forth inside the string for editing, 
  360.           at any time, using the cursor movement keys detailed above.  When 
  361.           you're through entering or editing your string, press [ESC].
  362.           
  363.           TROUBLESHOOTING
  364.           ---------------
  365.           
  366.           Most of the time, looking up printer codes and inputting them to 
  367.           EZSET will be a trouble-free operation.  But what to do if the 
  368.           results are not what you expect?  This section suggests a method 
  369.           for "cracking the tough nuts".
  370.           
  371.           When you cannot make your printer behave as you wish, it may be 
  372.           helpful to see how another program does it.  This presupposes, of 
  373.           course, that you have a word processor or the like that is able 
  374.           to switch your printer in the desired fashion.  The first step in 
  375.           finding out how this other program works its magic is to capture 
  376.           its output to a disk file, to PRINT TO DISK.  Most word 
  377.           processors and text editors are able to do this.  If yours isn't, 
  378.           it is still possible to capture print output to a disk file by 
  379.           using one of the many shareware utilities available for the 
  380.           purpose.  Check with your local shareware disk distributor, or, 
  381.           if you have a modem, log on to your favorite BBS and conduct a 
  382.           keyword search using, for example, "PRINT TO DISK".  That should 
  383.           net some possibilities.
  384.           
  385.           Once you are set up to print to disk, simplify your formatting as 
  386.           much as you can: no top margin, no left margin, and so on.  Then, 
  387.           type "Hello!" and print this file to disk.  Call the file HELLO.
  388.           
  389.           The next step involves using DEBUG, a utility that comes with 
  390.           DOS, to help you decipher what's going on.  Here's what you do:
  391.           
  392.           >DEBUG HELLO
  393.           -D
  394.           23CC:0100  1C 40 1B 36 1B 74 01 1B-43 00 0B 1B 6B 00 1B 78   
  395.           23CC:0110  01 1B 50 1B 52 00 1B 4A-B4 48 65 6C 6C 6F 21 0D   
  396.           23CC:0120  1B 4A FF 1B 4A FF 1B 4A-FF 1B 4A FF 1B 4A FF 1B   
  397.           23CC:0130  4A FF 1B 4A FF 1B 4A 0F-1C 40 0D F9 EB 0A 50 B0   
  398.           23CC:0140  03 B4 FF E8 03 00 58 F8-C3 57 26 8B 7F 04 2E 89   
  399.           23CC:0150  3E C8 88 26 88 05 26 88-65 01 50 2E A1 D7 88 26   
  400.           23CC:0160  89 45 02 58 3C 01 75 0A-26 89 55 04 26 89 4D 06   
  401.           23CC:0170  EB 5A 3C 02 75 06 26 89-55 04 EB 50 3C 07 74 E8   
  402.           
  403.           To the right of this (which there isn't room to show here) you 
  404.           would see a straight ASCII representation of the above.  At 
  405.           offset 119 hex there is our friendly "Hello!".  Your own "hello" 
  406.           file will certainly differ from this one; what you are interested 
  407.           
  408.           
  409.           
  410.                                           7
  411.           in is everything preceding the text.  It's now time to call your 
  412.           printer's manual into play again.  Start at the beginning, 
  413.           looking up each code in turn, and write down what it does.  By 
  414.           the time you get to the "Hello!" you should have a good idea of 
  415.           exactly what steps are necessary to get what you want out of your 
  416.           printer.  Since EZSET accepts hexadecimal input, there is no need 
  417.           to translate, and it should now be possible to get the results 
  418.           you want.
  419.           
  420.           DISCLAIMER - AGREEMENT
  421.           ----------------------
  422.           
  423.           Users of EZSET must accept this disclaimer of warranty:
  424.           
  425.           "EZSET is supplied as is.  The author disclaims all warranties, 
  426.           expressed or implied, including, without limitation, the 
  427.           warranties of merchantability and of fitness for any purpose.
  428.           The author assumes no liability for damages, direct or 
  429.           consequential, which may result from the use of EZSET."
  430.           
  431.           EZSET is a "shareware program" and is provided at no charge
  432.           to the user for evaluation.  Feel free to share it with your
  433.           friends, but please do not give it away altered or as part of
  434.           another system.  The essence of "user-supported" software is to
  435.           provide personal computer users with quality software without
  436.           high prices, and yet to provide incentive for programmers to
  437.           continue to develop new products.  If you find this program
  438.           useful and find that you are using EZSET and continue to use
  439.           EZSET after a reasonable trial period, you must make a 
  440.           registration payment of $20 to McAdams Associates.  The $20
  441.           registration fee will license one copy for use on any one
  442.           computer at any one time.  You must treat this software just like
  443.           a book.  An example is that this software may be used by any
  444.           number of people and may be freely moved from one computer
  445.           location to another, so long as there is no possibility of it
  446.           being used at one location while it's being used at another.
  447.           Just as a book cannot be read by two different persons at the
  448.           same time.
  449.           
  450.           Commercial users of EZSET must register and pay for their
  451.           copies of EZSET within 30 days of first use or their license
  452.           is withdrawn.  Site-License arrangements may be made by 
  453.           contacting McAdams Associates.
  454.           
  455.           Anyone distributing EZSET for any kind of remuneration must
  456.           first contact McAdams Associates at the address below for 
  457.           authorization.  This authorization will be automatically granted 
  458.           to distributors recognized by the ASP as adhering to its 
  459.           guidelines for shareware distributors, and such distributors may 
  460.           begin offering EZSET immediately (However McAdams Associates must 
  461.           still be advised so that the distributor can be kept up-to-date 
  462.           with the latest version of EZSET.).
  463.           
  464.           You are encouraged to pass a copy of EZSET along to your
  465.           friends for evaluation.  Please encourage them to register their
  466.           
  467.           
  468.           
  469.                                           8
  470.           copy if they find that they can use it.
  471.           
  472.           Since this is shareware and I am a member of the Association of 
  473.           Shareware Professionals, please read the following:
  474.           
  475.                "This program is produced by a member of the 
  476.                Association of Shareware Professionals (ASP).  ASP 
  477.                wants to make sure that the shareware principle works 
  478.                for you. If you are unable to resolve a shareware-
  479.                related problem with an ASP member by contacting the 
  480.                member directly, ASP may be able to help. The ASP 
  481.                Ombudsman can help you resolve a dispute or problem 
  482.                with an ASP member, but does not provide technical 
  483.                support for members' products. Please write to the ASP 
  484.                Ombudsman at 545 Grover Road, Muskegon, MI 49442
  485.                or send a CompuServe message via CompuServe Mail to ASP 
  486.                Ombudsman 70007,3536."
  487.                
  488.           REGISTERING EZSET
  489.           -----------------
  490.           
  491.           Registering EZSET costs $20 and includes one year's free support 
  492.           by phone, mail and CompuServe e-mail, free bug fixes, the latest 
  493.           version of EZSET, plus TWO handy utility programs: 1) SEARCH, a 
  494.           multitalented disk scanning file-finder program, and 2) TO/RET, a 
  495.           "two-in-one" combo that work together, enabling you to change to 
  496.           any disk/directory and return instantly to your starting point.
  497.           
  498.           To register EZSET, simply print and fill out the file 
  499.           REGISTER.DOC and send it, along with $20 (checks or M.O.s drawn 
  500.           on a U.S. bank only, please) to:
  501.           
  502.                                  McAdams Associates
  503.                                   P.O. Box 835505 
  504.                              Richardson, TX  75083-5505
  505.           
  506.                                  CIS PPN 70353,1644
  507.           
  508.           -----------------------------------------------------------------
  509.           
  510.           EZSET was created using QuickBasic, QuickC and MASM, which are 
  511.           trademarks of Microsoft Corporation.
  512.           
  513.           Credit to Mr. Bryan Walker, who explained how to obtain return 
  514.           codes from QuickBasic, in the May, 1990 PC Resource magazine.
  515.           
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.           
  526.           
  527.           
  528.                                           9
  529.           INDEX
  530.           -----
  531.           
  532.           
  533.           
  534.           
  535.           
  536.           [-><-] arrow keys, 5-6
  537.           Batch files, 3
  538.           Byte editing screen, 5-6
  539.           Changing online value
  540.                default or overall, 5
  541.                for individual strings, 4
  542.           Changing port setting
  543.                default or overall, 5
  544.                for individual strings, 4
  545.           [DEL] delete key
  546.                for erasing an entire string, 4
  547.                for erasing a single byte, 6
  548.           Editing a string, 3, 4
  549.           [END] key, 6
  550.           Entering a new string, 3, 5
  551.           ERRORLEVEL return code, 3
  552.           Escape codes (producing), 6
  553.           [ESC] escape key, 5, 6, 7
  554.           Exiting EZSET, 3
  555.           Hardware requirements, 2
  556.           [HOME] key, 6
  557.           [INS] insert key, 6
  558.           Library file, 2, 3, 4
  559.           Light bar menus, 2, 4, 5
  560.           Limitations, 2
  561.           Main menu, 2-3
  562.           Maximum length of strings, 2
  563.           Maximum number of strings, 2
  564.           Online return code, see Printer return code
  565.           [PgDn] page down key, 6
  566.           [PgUp] page up key, 6
  567.           Printer ports, 2, 3
  568.                default or overall, 5
  569.                for individual strings, 4
  570.           Printer return code, 2, 3, 4
  571.           Registering EZSET, 9
  572.           Scrolling menus, see Light bar menus
  573.           Starting EZSET
  574.                in command line mode, 3
  575.                in editor mode, 2
  576.           Troubleshooting, 7-8
  577.           
  578.           
  579.  
  580.  
  581.  
  582.  
  583.  
  584.           
  585.           
  586.           
  587.                                          10